<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>03_2.BufferGeometry</title>
    <style>
        body {
            margin: 0;
        }
    </style>
</head>

<body>
    <script src="build/three.js"></script>
    <script>
        //生成场景
        const scene = new THREE.Scene();
        //设置相机
        const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
        camera.position.z = 5;
        //设置渲染器
        const renderer = new THREE.WebGLRenderer();
        renderer.setSize(window.innerWidth, window.innerHeight);
        document.body.appendChild(renderer.domElement);
        //生成模型
        const geometry = new THREE.BufferGeometry();
        //构成模型的点
        const vertices = new Float32Array([
            0.468750, -0.757812, 0.242188,
            0.500000, -0.687500, 0.093750,
            0.562500, -0.671875, 0.242188,
            -0.500000, -0.687500, 0.093750,
            -0.468750, -0.757812, 0.242188,
            -0.562500, -0.671875, 0.242188,
            0.546875, -0.578125, 0.054688,
            0.625000, -0.562500, 0.242188,
            -0.546875, -0.578125, 0.054688,
            -0.625000, -0.562500, 0.242188,
            0.351562, -0.617188, -0.023438,
            -0.351562, -0.617188, -0.023438,
            0.437500, -0.765625, 0.164062,
            0.351562, -0.718750, 0.031250,
            -0.351562, -0.718750, 0.031250,
            -0.437500, -0.765625, 0.164062,
            0.351562, -0.781250, 0.132812,
            0.203125, -0.742188, 0.093750,
            -0.203125, -0.742188, 0.093750,
            -0.351562, -0.781250, 0.132812,
            0.156250, -0.648438, 0.054688,
            -0.156250, -0.648438, 0.054688,
            0.140625, -0.742188, 0.242188,
            -0.140625, -0.742188, 0.242188,
            -0.078125, -0.656250, 0.242188,
            0.273438, -0.796875, 0.164062,
            -0.273438, -0.796875, 0.164062,
            0.242188, -0.796875, 0.242188,
            0.203125, -0.742188, 0.390625,
            -0.203125, -0.742188, 0.390625,
            -0.242188, -0.796875, 0.242188,
            0.078125, -0.656250, 0.242188,
            -0.156250, -0.648438, 0.437500,
            0.351562, -0.718750, 0.453125,
            0.156250, -0.648438, 0.437500,
            -0.351562, -0.718750, 0.453125,
            -0.351562, -0.617188, 0.515625,
            0.351562, -0.781250, 0.359375,
            0.273438, -0.796875, 0.328125,
            -0.351562, -0.781250, 0.359375,
            0.437500, -0.765625, 0.328125,
            -0.437500, -0.765625, 0.328125,
            -0.500000, -0.687500, 0.390625,
            0.500000, -0.687500, 0.390625,
            0.351562, -0.617188, 0.515625,
            -0.546875, -0.578125, 0.437500,
            0.546875, -0.578125, 0.437500,
            0.476562, -0.773438, 0.242188,
            -0.476562, -0.773438, 0.242188,
            -0.445312, -0.781250, 0.335938,
            0.445312, -0.781250, 0.335938,
            -0.351562, -0.804688, 0.375000,
            0.351562, -0.804688, 0.375000,
            -0.273438, -0.796875, 0.328125,
            -0.265625, -0.820312, 0.335938,
            0.265625, -0.820312, 0.335938,
            -0.226562, -0.820312, 0.242188,
            0.265625, -0.820312, 0.156250,
            0.226562, -0.820312, 0.242188,
            -0.265625, -0.820312, 0.156250,
            0.351562, -0.804688, 0.117188,
            -0.351562, -0.804688, 0.117188,
            0.445312, -0.781250, 0.156250,
            -0.445312, -0.781250, 0.156250,
            0.351562, -0.828125, 0.242188,
            -0.351562, -0.828125, 0.242188,
            0.164062, -0.632812, -0.929688,
            0.000000, -0.578125, -0.984375,
            0.179688, -0.554688, -0.968750,
            -0.164062, -0.632812, -0.929688,
            0.000000, -0.640625, -0.945312,
            0.234375, -0.632812, -0.914062,
            0.328125, -0.523438, -0.945312,
            -0.234375, -0.632812, -0.914062,
            -0.179688, -0.554688, -0.968750,
            0.367188, -0.531250, -0.890625,
            -0.367188, -0.531250, -0.890625,
            -0.328125, -0.523438, -0.945312,
            0.351562, -0.570312, -0.695312,
            0.265625, -0.664062, -0.820312,
            -0.265625, -0.664062, -0.820312,
            -0.351562, -0.570312, -0.695312,
            0.312500, -0.570312, -0.437500,
            0.250000, -0.687500, -0.703125,
            -0.250000, -0.687500, -0.703125,
            -0.312500, -0.570312, -0.437500,
            0.203125, -0.562500, -0.187500,
            0.398438, -0.671875, -0.046875,
            0.125000, -0.812500, -0.101562,
            -0.398438, -0.671875, -0.046875,
            -0.203125, -0.562500, -0.187500,
            -0.125000, -0.812500, -0.101562,
            0.632812, -0.539062, -0.039062,
            0.437500, -0.531250, -0.140625,
            -0.632812, -0.539062, -0.039062,
            -0.617188, -0.625000, 0.054688,
            0.726562, -0.601562, 0.203125,
            0.617188, -0.625000, 0.054688,
            -0.726562, -0.601562, 0.203125,
            0.859375, -0.593750, 0.429688,
            0.828125, -0.445312, 0.148438,
            -0.859375, -0.593750, 0.429688,
            -0.742188, -0.656250, 0.375000,
            0.710938, -0.625000, 0.484375,
            0.742188, -0.656250, 0.375000,
            -0.710938, -0.625000, 0.484375,
            -0.687500, -0.726562, 0.414062,
            0.492188, -0.687500, 0.601562,
            0.687500, -0.726562, 0.414062,
            -0.492188, -0.687500, 0.601562,
            -0.437500, -0.796875, 0.546875,
            0.312500, -0.835938, 0.640625,
            0.437500, -0.796875, 0.546875,
            -0.312500, -0.835938, 0.640625,
            0.156250, -0.757812, 0.718750,
            0.320312, -0.734375, 0.757812,
            -0.156250, -0.757812, 0.718750,
            -0.203125, -0.851562, 0.617188,
            0.062500, -0.750000, 0.492188,
            0.203125, -0.851562, 0.617188,
            -0.062500, -0.750000, 0.492188,
            -0.101562, -0.843750, 0.429688,
            0.000000, -0.742188, 0.429688,
            0.101562, -0.843750, 0.429688,
            0.000000, -0.820312, 0.351562,
            0.250000, -0.757812, 0.468750,
            0.164062, -0.773438, 0.414062,
            -0.250000, -0.757812, 0.468750,
            0.328125, -0.742188, 0.476562,
            0.429688, -0.718750, 0.437500,
            -0.328125, -0.742188, 0.476562,
            0.601562, -0.664062, 0.375000,
            -0.429688, -0.718750, 0.437500,
            0.640625, -0.648438, 0.296875,
            -0.601562, -0.664062, 0.375000,
            0.625000, -0.648438, 0.187500,
            -0.640625, -0.648438, 0.296875,
            0.492188, -0.671875, 0.062500,
            -0.625000, -0.648438, 0.187500,
            0.375000, -0.703125, 0.015625,
            -0.492188, -0.671875, 0.062500,
            0.203125, -0.742188, 0.093750,
            -0.375000, -0.703125, 0.015625,
            0.000000, -0.726562, 0.046875,
            -0.203125, -0.742188, 0.093750,
            0.125000, -0.765625, 0.304688,
            -0.125000, -0.765625, 0.304688,
            0.000000, -0.765625, 0.210938,
            0.132812, -0.757812, 0.210938,
            -0.132812, -0.757812, 0.210938,
            0.164062, -0.750000, 0.140625,
            -0.164062, -0.750000, 0.140625,
            0.062500, -0.695312, -0.882812,
            -0.062500, -0.695312, -0.882812,
            0.117188, -0.710938, -0.835938,
            -0.117188, -0.710938, -0.835938,
            0.109375, -0.734375, -0.718750,
            0.210938, -0.710938, -0.445312,
            0.117188, -0.734375, -0.687500,
            -0.117188, -0.734375, -0.687500,
            -0.210938, -0.710938, -0.445312,
            -0.109375, -0.734375, -0.718750,
            0.000000, -0.742188, -0.328125,
            0.078125, -0.750000, -0.445312,
            0.085938, -0.742188, -0.289062,
            -0.078125, -0.750000, -0.445312,
            0.000000, -0.750000, -0.445312,
            0.000000, -0.734375, -0.679688,
            0.000000, -0.734375, -0.765625,
            0.125000, -0.750000, -0.226562,
            0.093750, -0.781250, -0.273438,
            -0.093750, -0.781250, -0.273438,
            -0.125000, -0.750000, -0.226562,
            -0.085938, -0.742188, -0.289062,
            0.101562, -0.742188, -0.148438,
            0.132812, -0.796875, -0.226562,
            -0.132812, -0.796875, -0.226562,
            -0.101562, -0.742188, -0.148438,
            0.039062, -0.781250, -0.125000,
            0.000000, -0.742188, -0.140625,
            -0.039062, -0.781250, -0.125000,
            -0.109375, -0.781250, -0.132812,
            0.000000, -0.796875, -0.187500,
            0.000000, -0.750000, -0.195312,
            0.000000, -0.781250, -0.320312,
            0.000000, -0.804688, -0.289062,
            -0.078125, -0.804688, -0.250000,
            0.046875, -0.812500, -0.148438,
            -0.046875, -0.812500, -0.148438,
            0.093750, -0.812500, -0.156250,
            0.109375, -0.781250, -0.132812,
            -0.093750, -0.812500, -0.156250,
            -0.109375, -0.828125, -0.226562,
            0.078125, -0.804688, -0.250000,
            0.109375, -0.828125, -0.226562,
            0.000000, -0.828125, -0.203125,
            0.164062, -0.710938, -0.242188,
            -0.164062, -0.710938, -0.242188,
            -0.179688, -0.710938, -0.312500,
            0.179688, -0.710938, -0.312500,
            0.257812, -0.554688, -0.312500,
            -0.257812, -0.554688, -0.312500,
            0.234375, -0.554688, -0.250000,
            -0.234375, -0.554688, -0.250000,
            0.093750, -0.726562, -0.742188,
            -0.093750, -0.726562, -0.742188,
            0.000000, -0.718750, -0.773438,
            0.093750, -0.710938, -0.820312,
            -0.093750, -0.710938, -0.820312,
            0.046875, -0.687500, -0.867188,
            -0.046875, -0.687500, -0.867188,
            0.000000, -0.687500, -0.890625,
            0.000000, -0.687500, -0.875000,
            0.000000, -0.632812, -0.859375,
            -0.046875, -0.632812, -0.851562,
            0.093750, -0.640625, -0.812500,
            0.046875, -0.632812, -0.851562,
            -0.093750, -0.640625, -0.812500,
            0.093750, -0.664062, -0.750000,
            -0.093750, -0.664062, -0.750000,
            0.000000, -0.656250, -0.781250,
            0.187500, -0.773438, 0.156250,
            0.171875, -0.781250, 0.218750,
            -0.187500, -0.773438, 0.156250,
            -0.171875, -0.781250, 0.218750,
            0.179688, -0.781250, 0.296875,
            -0.179688, -0.781250, 0.296875,
            0.210938, -0.781250, 0.375000,
            -0.210938, -0.781250, 0.375000,
            -0.226562, -0.781250, 0.109375,
            0.375000, -0.742188, 0.062500,
            0.226562, -0.781250, 0.109375,
            -0.375000, -0.742188, 0.062500,
            0.476562, -0.718750, 0.101562,
            -0.476562, -0.718750, 0.101562,
            0.578125, -0.679688, 0.195312,
            -0.578125, -0.679688, 0.195312,
            0.585938, -0.687500, 0.289062,
            -0.585938, -0.687500, 0.289062,
            -0.562500, -0.695312, 0.351562,
            0.562500, -0.695312, 0.351562,
            -0.421875, -0.773438, 0.398438,
            0.335938, -0.757812, 0.429688,
            0.421875, -0.773438, 0.398438,
            -0.335938, -0.757812, 0.429688,
            0.273438, -0.773438, 0.421875,
            -0.273438, -0.773438, 0.421875,
            0.281250, -0.765625, 0.398438,
            -0.281250, -0.765625, 0.398438,
            -0.234375, -0.757812, 0.359375,
            0.335938, -0.750000, 0.406250,
            -0.335938, -0.750000, 0.406250,
            0.414062, -0.750000, 0.390625,
            -0.414062, -0.750000, 0.390625,
            0.531250, -0.679688, 0.335938,
            -0.531250, -0.679688, 0.335938,
            0.554688, -0.671875, 0.281250,
            -0.554688, -0.671875, 0.281250,
            0.546875, -0.671875, 0.210938,
            -0.546875, -0.671875, 0.210938,
            0.460938, -0.703125, 0.117188,
            -0.460938, -0.703125, 0.117188,
            0.375000, -0.726562, 0.085938,
            -0.375000, -0.726562, 0.085938,
            0.242188, -0.757812, 0.125000,
            -0.242188, -0.757812, 0.125000,
            0.203125, -0.750000, 0.171875,
            -0.203125, -0.750000, 0.171875,
            0.195312, -0.757812, 0.296875,
            0.234375, -0.757812, 0.359375,
            -0.195312, -0.757812, 0.296875,
            0.195312, -0.750000, 0.226562,
            -0.195312, -0.750000, 0.226562,
            0.109375, -0.609375, 0.460938,
            0.000000, -0.601562, 0.406250,
            -0.109375, -0.609375, 0.460938,
            0.195312, -0.617188, 0.664062,
            -0.195312, -0.617188, 0.664062,
            -0.320312, -0.734375, 0.757812,
            -0.335938, -0.593750, 0.687500,
            0.335938, -0.593750, 0.687500,
            -0.484375, -0.554688, 0.554688,
            0.484375, -0.554688, 0.554688,
            -0.679688, -0.492188, 0.453125,
            0.796875, -0.460938, 0.406250,
            0.679688, -0.492188, 0.453125,
            -0.796875, -0.460938, 0.406250,
            -0.828125, -0.445312, 0.148438,
            -0.773438, -0.375000, 0.164062,
            0.601562, -0.414062, 0.000000,
            0.773438, -0.375000, 0.164062,
            -0.601562, -0.414062, 0.000000,
            0.437500, -0.468750, -0.093750,
            -0.437500, -0.468750, -0.093750,
            0.000000, -0.281250, -0.484375,
            0.125000, -0.359375, -0.539062,
            0.000000, -0.320312, -0.570312,
            -0.125000, -0.359375, -0.539062,
            -0.179688, -0.257812, -0.414062,
            0.140625, -0.367188, -0.757812,
            0.000000, -0.343750, -0.804688,
            -0.140625, -0.367188, -0.757812,
            0.164062, -0.437500, -0.945312,
            0.000000, -0.460938, -0.976562,
            -0.164062, -0.437500, -0.945312,
            0.328125, -0.398438, -0.914062,
            -0.328125, -0.398438, -0.914062,
            0.289062, -0.382812, -0.710938,
            -0.289062, -0.382812, -0.710938,
            0.250000, -0.390625, -0.500000,
            -0.250000, -0.390625, -0.500000,
            0.179688, -0.257812, -0.414062,
            0.234375, -0.406250, -0.351562,
            -0.234375, -0.406250, -0.351562,
            0.218750, -0.429688, -0.281250,
            -0.218750, -0.429688, -0.281250,
            -0.210938, -0.468750, -0.226562,
            0.203125, -0.500000, -0.171875,
            -0.203125, -0.500000, -0.171875,
            -0.437500, -0.531250, -0.140625,
            0.335938, 0.664062, 0.054688,
            0.000000, 0.671875, -0.195312,
            0.000000, 0.828125, 0.070312,
            -0.335938, 0.664062, 0.054688,
            -0.343750, 0.539062, -0.148438,
            0.343750, 0.539062, -0.148438,
            0.000000, 0.351562, -0.382812,
            -0.296875, 0.265625, -0.312500,
            0.210938, -0.164062, -0.390625,
            0.000000, -0.187500, -0.460938,
            -0.210938, -0.164062, -0.390625,
            0.734375, -0.070312, -0.046875,
            0.851562, -0.054688, 0.234375,
            -0.734375, -0.070312, -0.046875,
            -0.851562, -0.054688, 0.234375,
            0.460938, 0.703125, 0.437500,
            0.000000, 0.851562, 0.562500,
            -0.460938, 0.703125, 0.437500,
            0.453125, -0.234375, 0.851562,
            0.000000, 0.078125, 0.984375,
            0.000000, -0.289062, 0.898438,
            -0.453125, -0.234375, 0.851562,
            -0.453125, 0.070312, 0.929688,
            0.453125, 0.382812, 0.867188,
            0.000000, 0.546875, 0.898438,
            -0.453125, 0.382812, 0.867188,
            0.726562, -0.335938, 0.406250,
            0.632812, -0.281250, 0.453125,
            -0.726562, -0.335938, 0.406250,
            -0.632812, -0.281250, 0.453125,
            0.796875, -0.125000, 0.562500,
            0.640625, -0.054688, 0.703125,
            -0.796875, -0.125000, 0.562500,
            -0.640625, -0.054688, 0.703125,
            0.796875, 0.117188, 0.617188,
            0.640625, 0.195312, 0.750000,
            -0.796875, 0.117188, 0.617188,
            -0.640625, 0.195312, 0.750000,
            0.796875, 0.359375, 0.539062,
            0.640625, 0.445312, 0.679688,
            -0.796875, 0.359375, 0.539062,
            -0.640625, 0.445312, 0.679688,
            0.617188, 0.585938, 0.328125,
            0.773438, 0.437500, 0.265625,
            -0.617188, 0.585938, 0.328125,
            0.453125, 0.070312, 0.929688,
            0.460938, -0.429688, 0.523438,
            -0.460938, -0.429688, 0.523438,
            0.000000, -0.570312, 0.570312,
            0.859375, 0.046875, 0.320312,
            -0.859375, 0.046875, 0.320312,
            0.820312, 0.203125, 0.328125,
            -0.820312, 0.203125, 0.328125,
            0.296875, 0.265625, -0.312500,
            0.406250, -0.148438, -0.171875,
            -0.406250, -0.148438, -0.171875,
            -0.429688, 0.210938, -0.195312,
            0.593750, 0.164062, -0.125000,
            -0.593750, 0.164062, -0.125000,
            0.210938, -0.468750, -0.226562,
            0.640625, 0.429688, -0.007812,
            -0.640625, 0.429688, -0.007812,
            -0.484375, 0.546875, 0.023438,
            0.429688, 0.210938, -0.195312,
            0.484375, 0.546875, 0.023438,
            0.890625, 0.234375, 0.406250,
            1.015625, 0.289062, 0.414062,
            1.023438, 0.312500, 0.476562,
            -0.890625, 0.234375, 0.406250,
            -1.015625, 0.289062, 0.414062,
            -0.921875, 0.218750, 0.359375,
            1.187500, 0.390625, 0.437500,
            1.234375, 0.421875, 0.507812,
            -1.187500, 0.390625, 0.437500,
            -1.023438, 0.312500, 0.476562,
            -1.234375, 0.421875, 0.507812,
            1.351562, 0.421875, 0.320312,
            -1.351562, 0.421875, 0.320312,
            -1.265625, 0.406250, 0.289062,
            1.265625, 0.406250, 0.289062,
            1.281250, 0.429688, 0.054688,
            -1.281250, 0.429688, 0.054688,
            -1.210938, 0.406250, 0.078125,
            1.210938, 0.406250, 0.078125,
            1.039062, 0.328125, -0.101562,
            -1.039062, 0.328125, -0.101562,
            -1.031250, 0.304688, -0.039062,
            0.828125, 0.132812, -0.070312,
            0.773438, 0.125000, -0.140625,
            -0.828125, 0.132812, -0.070312,
            -0.773438, 0.125000, -0.140625,
            1.031250, 0.304688, -0.039062,
            0.882812, 0.210938, -0.023438,
            -0.882812, 0.210938, -0.023438,
            1.039062, 0.367188, 0.000000,
            -1.039062, 0.367188, 0.000000,
            1.234375, 0.445312, 0.250000,
            -1.234375, 0.445312, 0.250000,
            -1.187500, 0.445312, 0.093750,
            1.171875, 0.437500, 0.359375,
            -1.171875, 0.437500, 0.359375,
            1.023438, 0.359375, 0.343750,
            -1.023438, 0.359375, 0.343750,
            0.945312, 0.289062, 0.304688,
            -0.945312, 0.289062, 0.304688,
            0.726562, 0.070312, 0.000000,
            -0.726562, 0.070312, 0.000000,
            -0.718750, 0.171875, -0.023438,
            0.718750, 0.171875, -0.023438,
            0.921875, 0.218750, 0.359375,
            0.812500, 0.273438, -0.015625,
            -0.812500, 0.273438, -0.015625,
            0.718750, 0.187500, 0.039062,
            0.843750, 0.273438, 0.015625,
            -0.718750, 0.187500, 0.039062,
            0.757812, 0.273438, 0.093750,
            0.820312, 0.273438, 0.085938,
            -0.843750, 0.273438, 0.015625,
            -0.757812, 0.273438, 0.093750,
            -0.820312, 0.273438, 0.085938,
            0.796875, 0.210938, 0.203125,
            0.835938, 0.273438, 0.171875,
            -0.796875, 0.210938, 0.203125,
            0.890625, 0.265625, 0.242188,
            0.843750, 0.210938, 0.289062,
            -0.890625, 0.265625, 0.242188,
            -0.835938, 0.273438, 0.171875,
            -0.843750, 0.210938, 0.289062,
            0.890625, 0.320312, 0.234375,
            0.953125, 0.343750, 0.289062,
            -0.890625, 0.320312, 0.234375,
            -0.953125, 0.343750, 0.289062,
            -0.843750, 0.320312, 0.171875,
            0.765625, 0.320312, 0.093750,
            0.843750, 0.320312, 0.171875,
            -0.765625, 0.320312, 0.093750,
            -0.828125, 0.320312, 0.078125,
            0.828125, 0.320312, 0.078125,
            -0.851562, 0.320312, 0.015625,
            0.812500, 0.320312, -0.015625,
            0.851562, 0.320312, 0.015625,
            -0.812500, 0.320312, -0.015625,
            0.882812, 0.265625, -0.015625,
            -0.882812, 0.265625, -0.015625,
            1.039062, 0.414062, 0.328125,
            -1.039062, 0.414062, 0.328125,
            1.187500, 0.484375, 0.343750,
            -1.187500, 0.484375, 0.343750,
            1.257812, 0.492188, 0.242188,
            -1.257812, 0.492188, 0.242188,
            1.210938, 0.484375, 0.085938,
            1.187500, 0.445312, 0.093750,
            -1.210938, 0.484375, 0.085938,
            1.046875, 0.421875, 0.000000,
            -1.046875, 0.421875, 0.000000,
            0.890625, 0.328125, 0.109375,
            -0.890625, 0.328125, 0.109375,
            -0.937500, 0.335938, 0.062500,
            0.937500, 0.335938, 0.062500,
            0.960938, 0.351562, 0.171875,
            -0.960938, 0.351562, 0.171875,
            -1.000000, 0.367188, 0.125000,
            1.054688, 0.382812, 0.187500,
            1.015625, 0.375000, 0.234375,
            -1.054688, 0.382812, 0.187500,
            -1.015625, 0.375000, 0.234375,
            1.085938, 0.390625, 0.273438,
            -1.085938, 0.390625, 0.273438,
            -1.109375, 0.390625, 0.210938,
            1.109375, 0.390625, 0.210938,
            0.789062, 0.328125, -0.125000,
            1.039062, 0.492188, -0.085938,
            -0.789062, 0.328125, -0.125000,
            -1.039062, 0.492188, -0.085938,
            1.312500, 0.531250, 0.054688,
            -1.312500, 0.531250, 0.054688,
            1.367188, 0.500000, 0.296875,
            -1.367188, 0.500000, 0.296875,
            1.250000, 0.546875, 0.468750,
            -1.250000, 0.546875, 0.468750,
            1.023438, 0.484375, 0.437500,
            -1.023438, 0.484375, 0.437500,
            0.859375, 0.382812, 0.382812,
            -0.859375, 0.382812, 0.382812,
            -0.773438, 0.437500, 0.265625,
            -0.164062, -0.773438, 0.414062,
            1.000000, 0.367188, 0.125000
        ]);
        //点对应的
        const indices = [
            0, 1, 2,
            3, 4, 5,
            2, 6, 7,
            8, 5, 9,
            1, 10, 6,
            11, 3, 8,
            12, 13, 1,
            14, 15, 3,
            16, 17, 13,
            18, 19, 14,
            13, 20, 10,
            21, 14, 11,
            22, 20, 17,
            23, 21, 24,
            25, 22, 17,
            23, 26, 18,
            27, 28, 22,
            29, 30, 23,
            28, 31, 22,
            29, 24, 32,
            33, 34, 28,
            35, 32, 36,
            37, 28, 38,
            39, 29, 35,
            40, 33, 37,
            41, 35, 42,
            43, 44, 33,
            42, 36, 45,
            2, 46, 43,
            5, 45, 9,
            0, 43, 40,
            4, 42, 5,
            40, 47, 0,
            41, 48, 49,
            37, 50, 40,
            39, 49, 51,
            38, 52, 37,
            53, 51, 54,
            27, 55, 38,
            30, 54, 56,
            27, 57, 58,
            59, 30, 56,
            25, 60, 57,
            61, 26, 59,
            16, 62, 60,
            63, 19, 61,
            12, 47, 62,
            48, 15, 63,
            64, 62, 47,
            48, 63, 65,
            60, 62, 64,
            65, 63, 61,
            64, 57, 60,
            61, 59, 65,
            64, 58, 57,
            59, 56, 65,
            64, 55, 58,
            56, 54, 65,
            64, 52, 55,
            54, 51, 65,
            64, 50, 52,
            51, 49, 65,
            64, 47, 50,
            49, 48, 65,
            66, 67, 68,
            69, 67, 70,
            71, 68, 72,
            73, 74, 69,
            75, 71, 72,
            73, 76, 77,
            78, 79, 75,
            80, 81, 76,
            82, 83, 78,
            84, 85, 81,
            86, 87, 88,
            89, 90, 91,
            92, 87, 93,
            94, 89, 95,
            92, 96, 97,
            98, 94, 95,
            99, 96, 100,
            101, 98, 102,
            103, 104, 99,
            105, 102, 106,
            107, 108, 103,
            109, 106, 110,
            107, 111, 112,
            113, 109, 110,
            114, 111, 115,
            116, 113, 117,
            118, 119, 114,
            120, 117, 121,
            122, 123, 118,
            122, 121, 124,
            125, 123, 126,
            127, 121, 117,
            125, 111, 119,
            113, 127, 117,
            112, 128, 129,
            110, 130, 113,
            108, 129, 131,
            106, 132, 110,
            104, 131, 133,
            102, 134, 106,
            96, 133, 135,
            98, 136, 102,
            97, 135, 137,
            95, 138, 98,
            87, 137, 139,
            89, 140, 95,
            88, 139, 141,
            91, 142, 89,
            141, 143, 88,
            143, 144, 91,
            123, 145, 126,
            121, 146, 124,
            145, 147, 148,
            147, 146, 149,
            150, 147, 143,
            151, 147, 149,
            152, 70, 66,
            70, 153, 69,
            154, 66, 71,
            69, 155, 73,
            154, 79, 156,
            155, 80, 73,
            157, 158, 83,
            159, 160, 84,
            156, 83, 158,
            84, 161, 159,
            162, 163, 164,
            162, 165, 166,
            163, 167, 158,
            165, 167, 166,
            156, 167, 168,
            161, 167, 159,
            169, 170, 164,
            171, 172, 173,
            174, 175, 169,
            176, 177, 172,
            178, 174, 179,
            180, 177, 181,
            182, 179, 183,
            182, 179, 180,
            164, 184, 162,
            173, 184, 171,
            170, 185, 184,
            171, 185, 186,
            182, 187, 178,
            188, 182, 180,
            178, 189, 190,
            191, 180, 181,
            189, 175, 190,
            191, 176, 192,
            175, 193, 170,
            186, 176, 171,
            194, 187, 195,
            192, 188, 191,
            195, 193, 194,
            186, 195, 192,
            179, 88, 143,
            91, 179, 143,
            174, 196, 88,
            197, 177, 91,
            164, 196, 169,
            173, 197, 198,
            163, 199, 164,
            165, 198, 160,
            200, 157, 82,
            201, 160, 198,
            202, 199, 200,
            203, 198, 197,
            86, 196, 202,
            197, 90, 203,
            168, 204, 156,
            168, 205, 206,
            154, 204, 207,
            205, 155, 208,
            152, 207, 209,
            208, 153, 210,
            211, 209, 212,
            210, 211, 212,
            209, 213, 212,
            210, 213, 214,
            209, 215, 216,
            217, 210, 214,
            207, 218, 215,
            219, 208, 217,
            206, 218, 204,
            206, 219, 220,
            220, 216, 218,
            214, 220, 219,
            218, 216, 215,
            217, 214, 219,
            148, 221, 222,
            223, 149, 224,
            145, 222, 225,
            224, 146, 226,
            145, 227, 126,
            146, 228, 226,
            141, 221, 150,
            144, 223, 229,
            141, 230, 231,
            232, 144, 229,
            139, 233, 230,
            234, 142, 232,
            137, 235, 233,
            236, 140, 234,
            135, 237, 235,
            238, 138, 236,
            131, 237, 133,
            134, 238, 239,
            129, 240, 131,
            132, 239, 241,
            129, 242, 243,
            244, 132, 241,
            128, 245, 242,
            246, 130, 244,
            125, 227, 245,
            228, 127, 246,
            227, 247, 245,
            228, 248, 249,
            242, 247, 250,
            248, 244, 251,
            242, 252, 243,
            244, 253, 251,
            243, 254, 240,
            241, 255, 253,
            237, 254, 256,
            255, 238, 257,
            237, 258, 235,
            238, 259, 257,
            233, 258, 260,
            259, 234, 261,
            233, 262, 230,
            234, 263, 261,
            230, 264, 231,
            232, 265, 263,
            221, 264, 266,
            265, 223, 267,
            227, 268, 269,
            270, 228, 249,
            225, 271, 268,
            272, 226, 270,
            222, 266, 271,
            267, 224, 272,
            122, 273, 274,
            275, 122, 274,
            118, 276, 273,
            277, 120, 275,
            115, 276, 114,
            278, 277, 279,
            107, 280, 115,
            109, 279, 281,
            103, 282, 107,
            105, 281, 283,
            103, 284, 285,
            286, 105, 283,
            100, 284, 99,
            287, 286, 288,
            100, 289, 290,
            291, 287, 288,
            92, 292, 289,
            293, 94, 291,
            294, 295, 296,
            294, 297, 298,
            296, 299, 300,
            296, 301, 297,
            300, 302, 303,
            300, 304, 301,
            68, 303, 302,
            303, 74, 304,
            72, 302, 305,
            304, 77, 306,
            75, 305, 307,
            306, 76, 308,
            78, 307, 309,
            308, 81, 310,
            307, 295, 309,
            297, 308, 310,
            305, 299, 307,
            306, 301, 304,
            309, 311, 312,
            310, 298, 297,
            82, 309, 312,
            310, 85, 313,
            314, 202, 200,
            315, 203, 316,
            312, 200, 82,
            313, 201, 315,
            202, 317, 86,
            203, 318, 316,
            317, 93, 86,
            318, 319, 293,
            320, 321, 322,
            323, 321, 324,
            325, 326, 321,
            324, 326, 327,
            326, 328, 329,
            330, 326, 329,
            329, 311, 294,
            298, 329, 294,
            311, 314, 312,
            298, 315, 330,
            290, 331, 332,
            333, 288, 334,
            335, 322, 336,
            337, 322, 323,
            338, 339, 340,
            341, 339, 342,
            339, 343, 344,
            345, 339, 344,
            344, 335, 336,
            337, 344, 336,
            285, 346, 347,
            348, 283, 349,
            347, 350, 351,
            352, 349, 353,
            351, 354, 355,
            356, 353, 357,
            355, 358, 359,
            360, 357, 361,
            362, 358, 363,
            364, 360, 361,
            335, 359, 362,
            361, 337, 364,
            343, 355, 359,
            357, 345, 361,
            365, 351, 355,
            353, 342, 357,
            338, 347, 351,
            349, 341, 353,
            285, 366, 282,
            283, 367, 349,
            366, 340, 368,
            367, 340, 341,
            273, 280, 282,
            279, 275, 281,
            273, 366, 368,
            367, 275, 368,
            274, 273, 368,
            368, 275, 274,
            290, 346, 284,
            288, 348, 334,
            332, 350, 346,
            352, 334, 348,
            369, 354, 350,
            356, 370, 352,
            358, 371, 363,
            360, 372, 356,
            373, 374, 328,
            327, 375, 376,
            374, 377, 331,
            375, 378, 376,
            289, 374, 331,
            375, 291, 333,
            292, 314, 374,
            315, 293, 375,
            314, 328, 374,
            375, 330, 315,
            292, 317, 379,
            316, 318, 293,
            380, 362, 363,
            381, 364, 382,
            362, 320, 335,
            364, 323, 382,
            383, 380, 377,
            376, 381, 382,
            325, 383, 373,
            324, 376, 382,
            320, 384, 325,
            324, 382, 323,
            385, 386, 387,
            388, 389, 390,
            387, 391, 392,
            393, 394, 395,
            391, 396, 392,
            393, 397, 398,
            399, 400, 396,
            398, 401, 402,
            403, 404, 400,
            402, 405, 406,
            404, 407, 408,
            409, 405, 410,
            411, 412, 407,
            413, 406, 409,
            403, 414, 411,
            415, 402, 406,
            416, 403, 399,
            417, 402, 418,
            419, 399, 391,
            420, 398, 417,
            421, 391, 386,
            422, 393, 420,
            386, 423, 421,
            424, 389, 422,
            377, 425, 331,
            378, 426, 427,
            408, 428, 377,
            410, 427, 409,
            332, 425, 369,
            426, 334, 370,
            371, 429, 385,
            390, 372, 388,
            407, 430, 428,
            431, 409, 427,
            432, 430, 433,
            434, 431, 427,
            435, 433, 436,
            437, 438, 439,
            440, 435, 441,
            442, 438, 434,
            440, 443, 444,
            442, 445, 446,
            444, 423, 429,
            447, 424, 445,
            369, 444, 371,
            447, 370, 372,
            425, 440, 369,
            426, 442, 434,
            425, 428, 432,
            434, 427, 426,
            423, 448, 449,
            450, 424, 451,
            441, 448, 443,
            446, 450, 452,
            441, 453, 454,
            455, 446, 452,
            436, 453, 435,
            439, 455, 456,
            433, 457, 436,
            437, 456, 458,
            433, 459, 460,
            461, 437, 458,
            430, 462, 459,
            463, 431, 461,
            421, 449, 464,
            451, 422, 465,
            419, 464, 466,
            465, 420, 467,
            416, 466, 468,
            467, 417, 469,
            416, 470, 471,
            417, 472, 469,
            471, 473, 414,
            418, 474, 472,
            414, 462, 412,
            415, 463, 474,
            460, 475, 457,
            458, 476, 477,
            478, 479, 475,
            477, 480, 481,
            479, 482, 483,
            484, 480, 485,
            482, 486, 483,
            484, 487, 488,
            464, 483, 486,
            485, 465, 487,
            479, 449, 448,
            480, 451, 485,
            454, 479, 448,
            452, 480, 476,
            457, 454, 453,
            452, 456, 455,
            462, 460, 459,
            463, 458, 477,
            473, 478, 462,
            477, 474, 463,
            482, 473, 470,
            484, 474, 481,
            489, 470, 468,
            488, 472, 484,
            466, 489, 468,
            488, 467, 469,
            464, 486, 466,
            467, 487, 465,
            404, 490, 491,
            492, 405, 493,
            400, 491, 494,
            493, 401, 495,
            400, 496, 396,
            401, 497, 495,
            396, 498, 392,
            397, 499, 497,
            392, 500, 387,
            395, 501, 499,
            387, 502, 385,
            394, 503, 501,
            491, 502, 500,
            493, 503, 492,
            500, 494, 491,
            495, 501, 493,
            498, 496, 494,
            495, 497, 499,
            371, 502, 363,
            372, 503, 388,
            363, 490, 380,
            492, 504, 381,
            377, 490, 408,
            492, 378, 410,
            0, 12, 1,
            3, 15, 4,
            2, 1, 6,
            8, 3, 5,
            1, 13, 10,
            11, 14, 3,
            12, 16, 13,
            14, 19, 15,
            16, 25, 17,
            18, 26, 19,
            13, 17, 20,
            21, 18, 14,
            22, 31, 20,
            23, 18, 21,
            25, 27, 22,
            23, 30, 26,
            27, 38, 28,
            29, 53, 30,
            28, 34, 31,
            29, 23, 24,
            33, 44, 34,
            35, 29, 32,
            37, 33, 28,
            39, 53, 29,
            40, 43, 33,
            41, 39, 35,
            43, 46, 44,
            42, 35, 36,
            2, 7, 46,
            5, 42, 45,
            0, 2, 43,
            4, 41, 42,
            40, 50, 47,
            41, 4, 48,
            37, 52, 50,
            39, 41, 49,
            38, 55, 52,
            53, 39, 51,
            27, 58, 55,
            30, 53, 54,
            27, 25, 57,
            59, 26, 30,
            25, 16, 60,
            61, 19, 26,
            16, 12, 62,
            63, 15, 19,
            12, 0, 47,
            48, 4, 15,
            66, 70, 67,
            69, 74, 67,
            71, 66, 68,
            73, 77, 74,
            75, 79, 71,
            73, 80, 76,
            78, 83, 79,
            80, 84, 81,
            82, 157, 83,
            84, 160, 85,
            86, 93, 87,
            89, 319, 90,
            92, 97, 87,
            94, 319, 89,
            92, 100, 96,
            98, 287, 94,
            99, 104, 96,
            101, 287, 98,
            103, 108, 104,
            105, 101, 102,
            107, 112, 108,
            109, 105, 106,
            107, 115, 111,
            113, 278, 109,
            114, 119, 111,
            116, 278, 113,
            118, 123, 119,
            120, 116, 117,
            122, 124, 123,
            122, 120, 121,
            125, 119, 123,
            127, 505, 121,
            125, 128, 111,
            113, 130, 127,
            112, 111, 128,
            110, 132, 130,
            108, 112, 129,
            106, 134, 132,
            104, 108, 131,
            102, 136, 134,
            96, 104, 133,
            98, 138, 136,
            97, 96, 135,
            95, 140, 138,
            87, 97, 137,
            89, 142, 140,
            88, 87, 139,
            91, 144, 142,
            141, 150, 143,
            143, 151, 144,
            123, 124, 145,
            121, 505, 146,
            145, 124, 147,
            147, 124, 146,
            150, 148, 147,
            151, 143, 147,
            152, 211, 70,
            70, 211, 153,
            154, 152, 66,
            69, 153, 155,
            154, 71, 79,
            155, 161, 80,
            157, 163, 158,
            159, 165, 160,
            156, 79, 83,
            84, 80, 161,
            162, 166, 163,
            162, 173, 165,
            163, 166, 167,
            165, 159, 167,
            156, 158, 167,
            161, 168, 167,
            169, 175, 170,
            171, 176, 172,
            174, 190, 175,
            176, 181, 177,
            178, 190, 174,
            180, 179, 177,
            182, 178, 179,
            164, 170, 184,
            173, 162, 184,
            170, 193, 185,
            171, 184, 185,
            182, 195, 187,
            188, 195, 182,
            178, 187, 189,
            191, 188, 180,
            189, 194, 175,
            191, 181, 176,
            175, 194, 193,
            186, 192, 176,
            194, 189, 187,
            192, 195, 188,
            195, 185, 193,
            186, 185, 195,
            179, 174, 88,
            91, 177, 179,
            174, 169, 196,
            197, 172, 177,
            164, 199, 196,
            173, 172, 197,
            163, 157, 199,
            165, 173, 198,
            200, 199, 157,
            201, 85, 160,
            202, 196, 199,
            203, 201, 198,
            86, 88, 196,
            197, 91, 90,
            168, 206, 204,
            168, 161, 205,
            154, 156, 204,
            205, 161, 155,
            152, 154, 207,
            208, 155, 153,
            211, 152, 209,
            210, 153, 211,
            209, 216, 213,
            210, 212, 213,
            209, 207, 215,
            217, 208, 210,
            207, 204, 218,
            219, 205, 208,
            206, 220, 218,
            206, 205, 219,
            220, 213, 216,
            214, 213, 220,
            148, 150, 221,
            223, 151, 149,
            145, 148, 222,
            224, 149, 146,
            145, 225, 227,
            146, 505, 228,
            141, 231, 221,
            144, 151, 223,
            141, 139, 230,
            232, 142, 144,
            139, 137, 233,
            234, 140, 142,
            137, 135, 235,
            236, 138, 140,
            135, 133, 237,
            238, 136, 138,
            131, 240, 237,
            134, 136, 238,
            129, 243, 240,
            132, 134, 239,
            129, 128, 242,
            244, 130, 132,
            128, 125, 245,
            246, 127, 130,
            125, 126, 227,
            228, 505, 127,
            227, 269, 247,
            228, 246, 248,
            242, 245, 247,
            248, 246, 244,
            242, 250, 252,
            244, 241, 253,
            243, 252, 254,
            241, 239, 255,
            237, 240, 254,
            255, 239, 238,
            237, 256, 258,
            238, 236, 259,
            233, 235, 258,
            259, 236, 234,
            233, 260, 262,
            234, 232, 263,
            230, 262, 264,
            232, 229, 265,
            221, 231, 264,
            265, 229, 223,
            227, 225, 268,
            270, 226, 228,
            225, 222, 271,
            272, 224, 226,
            222, 221, 266,
            267, 223, 224,
            122, 118, 273,
            275, 120, 122,
            118, 114, 276,
            277, 116, 120,
            115, 280, 276,
            278, 116, 277,
            107, 282, 280,
            109, 278, 279,
            103, 285, 282,
            105, 109, 281,
            103, 99, 284,
            286, 101, 105,
            100, 290, 284,
            287, 101, 286,
            100, 92, 289,
            291, 94, 287,
            92, 93, 292,
            293, 319, 94,
            294, 311, 295,
            294, 296, 297,
            296, 295, 299,
            296, 300, 301,
            300, 299, 302,
            300, 303, 304,
            68, 67, 303,
            303, 67, 74,
            72, 68, 302,
            304, 74, 77,
            75, 72, 305,
            306, 77, 76,
            78, 75, 307,
            308, 76, 81,
            307, 299, 295,
            297, 301, 308,
            305, 302, 299,
            306, 308, 301,
            309, 295, 311,
            310, 313, 298,
            82, 78, 309,
            310, 81, 85,
            314, 379, 202,
            315, 201, 203,
            312, 314, 200,
            313, 85, 201,
            202, 379, 317,
            203, 90, 318,
            317, 292, 93,
            318, 90, 319,
            320, 325, 321,
            323, 322, 321,
            325, 373, 326,
            324, 321, 326,
            326, 373, 328,
            330, 327, 326,
            329, 328, 311,
            298, 330, 329,
            311, 328, 314,
            298, 313, 315,
            290, 289, 331,
            333, 291, 288,
            335, 320, 322,
            337, 336, 322,
            338, 365, 339,
            341, 340, 339,
            339, 365, 343,
            345, 342, 339,
            344, 343, 335,
            337, 345, 344,
            285, 284, 346,
            348, 286, 283,
            347, 346, 350,
            352, 348, 349,
            351, 350, 354,
            356, 352, 353,
            355, 354, 358,
            360, 356, 357,
            362, 359, 358,
            364, 504, 360,
            335, 343, 359,
            361, 345, 337,
            343, 365, 355,
            357, 342, 345,
            365, 338, 351,
            353, 341, 342,
            338, 366, 347,
            349, 367, 341,
            285, 347, 366,
            283, 281, 367,
            366, 338, 340,
            367, 368, 340,
            273, 276, 280,
            279, 277, 275,
            273, 282, 366,
            367, 281, 275,
            290, 332, 346,
            288, 286, 348,
            332, 369, 350,
            352, 370, 334,
            369, 371, 354,
            356, 372, 370,
            358, 354, 371,
            360, 504, 372,
            373, 383, 374,
            327, 330, 375,
            374, 383, 377,
            375, 333, 378,
            289, 292, 374,
            375, 293, 291,
            292, 379, 314,
            315, 316, 293,
            380, 384, 362,
            381, 504, 364,
            362, 384, 320,
            364, 337, 323,
            383, 384, 380,
            376, 378, 381,
            325, 384, 383,
            324, 327, 376,
            385, 429, 386,
            388, 394, 389,
            387, 386, 391,
            393, 389, 394,
            391, 399, 396,
            393, 395, 397,
            399, 403, 400,
            398, 397, 401,
            403, 411, 404,
            402, 401, 405,
            404, 411, 407,
            409, 406, 405,
            411, 414, 412,
            413, 415, 406,
            403, 471, 414,
            415, 418, 402,
            416, 471, 403,
            417, 398, 402,
            419, 416, 399,
            420, 393, 398,
            421, 419, 391,
            422, 389, 393,
            386, 429, 423,
            424, 390, 389,
            377, 428, 425,
            378, 333, 426,
            408, 407, 428,
            410, 378, 427,
            332, 331, 425,
            426, 333, 334,
            371, 444, 429,
            390, 447, 372,
            407, 412, 430,
            431, 413, 409,
            432, 428, 430,
            434, 437, 431,
            435, 432, 433,
            437, 434, 438,
            440, 432, 435,
            442, 446, 438,
            440, 441, 443,
            442, 447, 445,
            444, 443, 423,
            447, 390, 424,
            369, 440, 444,
            447, 442, 370,
            425, 432, 440,
            426, 370, 442,
            423, 443, 448,
            450, 445, 424,
            441, 454, 448,
            446, 445, 450,
            441, 435, 453,
            455, 438, 446,
            436, 457, 453,
            439, 438, 455,
            433, 460, 457,
            437, 439, 456,
            433, 430, 459,
            461, 431, 437,
            430, 412, 462,
            463, 413, 431,
            421, 423, 449,
            451, 424, 422,
            419, 421, 464,
            465, 422, 420,
            416, 419, 466,
            467, 420, 417,
            416, 468, 470,
            417, 418, 472,
            471, 470, 473,
            418, 415, 474,
            414, 473, 462,
            415, 413, 463,
            460, 478, 475,
            458, 456, 476,
            478, 506, 479,
            477, 476, 480,
            479, 506, 482,
            484, 481, 480,
            482, 489, 486,
            484, 485, 487,
            464, 449, 483,
            485, 451, 465,
            479, 483, 449,
            480, 450, 451,
            454, 475, 479,
            452, 450, 480,
            457, 475, 454,
            452, 476, 456,
            462, 478, 460,
            463, 461, 458,
            473, 506, 478,
            477, 481, 474,
            482, 506, 473,
            484, 472, 474,
            489, 482, 470,
            488, 469, 472,
            466, 486, 489,
            488, 487, 467,
            404, 408, 490,
            492, 410, 405,
            400, 404, 491,
            493, 405, 401,
            400, 494, 496,
            401, 397, 497,
            396, 496, 498,
            397, 395, 499,
            392, 498, 500,
            395, 394, 501,
            387, 500, 502,
            394, 388, 503,
            491, 490, 502,
            493, 501, 503,
            500, 498, 494,
            495, 499, 501,
            371, 385, 502,
            372, 504, 503,
            363, 502, 490,
            492, 503, 504,
            377, 380, 490,
            492, 381, 378
        ]
        geometry.setIndex( indices );
        geometry.setAttribute('position', new THREE.BufferAttribute(vertices, 3));
        const greenMaterial = new THREE.MeshBasicMaterial({ color: 0x00ff00 });
        const object = new THREE.Mesh(geometry, greenMaterial);

        //设置场景
        object.rotation.x-=90;
        scene.add(object);

        //渲染场景
        renderer.render(scene, camera);
    </script>
</body>

</html>